/**
 * @author: XJC
 * @date: 2023-12-11 15:01
 * @description：smartShelf API 用户端-智能货架
 * @update: 2023-12-11 15:01
 */
import request from '@/utils/request'

// 查询货架所有列表
export function getShelvesList(data) {
  return request({
    url: '/goodsShelvesInfo/queryList',
    method: 'get',
    params: data
  })
}

// 根据货位查询详情
export function queryByPositionId(params) {
  return request({
    url: '/goodsPositionBind/queryInfo',
    method: 'get',
    params
  })
}
// 指定货位手动领取指引灯
export function lampPositionIsOpen(data) {
  return request({
    url: '/taskInfo/lampPositionIsOpen',
    method: 'get',
    params: data
  })
}
// 指定货位手动领取指引灯
export function lampPosition(data) {
  return request({
    url: '/taskInfo/lampPosition',
    method: 'post',
    data
  })
}
// 指定物料手动领取指引灯
export function lampGoods(data) {
  return request({
    url: '/taskInfo/lampGoods',
    method: 'post',
    data
  })
}
// 关闭指引灯
export function closeLamp(data) {
  return request({
    url: '/taskInfo/closeLamp',
    method: 'post',
    data
  })
}
